package com.ldg.cart.client;

import com.ldg.cart.entity.ItemEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Liudao
 * @Date: 2022-10-17-14:32
 * @Description:
 */
@FeignClient("ldg-manager")
@Component
public interface ManagerClient {
    @RequestMapping("/item/findById/{id}")
    ItemEntity findById(@PathVariable("id") String id);
}
